<script setup lang="ts">
import mButton from "../../components/m-button.vue"

const isMetaMaskInstalled = () => {
    if (window.ethereum && window.ethereum.isMetaMask) {
        uni.showToast({
            icon: "none",
            title: "已安装"
        })
    } else {
        uni.showToast({
            icon: "none",
            title: "未安装MetaMask"
        })
    }
}

</script>
<template>
    <mButton @click="isMetaMaskInstalled">是否安装了MetaMask</mButton>
</template>
